package com.lyy.extend_study.exercise;


/**
 * @Author:  GZQ
 * @date:  2024/11/15 0:17
 * @description: 编写NotePad类，继承Computer类，添加特有属性【color】
 */

public class NotePad extends Computer{
    private String color;

    public NotePad(String cpu, String memory, String hardDisk, String color) {
        super(cpu, memory, hardDisk);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void showInfo(){
        System.out.println("笔记本信息: ");
        System.out.println(getDetails()+" "+color);
    }
}
